<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="../base/base_list.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>生产厂家列表</title>
</head>
<body>
<form name="icform" method="post">
    <div id="menubar">
        <div id="middleMenubar">
            <div id="innerMenubar">
                <div id="navMenubar">
                    <ul>
                        <li id="view"><a href="#" onclick="formSubmit('detail','_self');this.blur();">查看</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('create','_self');this.blur();">添加</a></li>
                        <li id="update"><a href="#" onclick="formSubmit('modify','_self');this.blur();">修改</a></li>
                        <li id="delete"><a href="#" onclick="formSubmit('deleteById','_self');this.blur();">删除</a></li>
                        <li id="delete"><a href="#" onclick="formSubmit('delete','_self');this.blur();">删除N</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('start','_self');this.blur();">启用</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('stop','_self');this.blur();">停用</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- 页面主体部分（列表等） -->
    <div class="textbox" id="centerTextbox">
        <div class="textbox-header">
            <div class="textbox-inner-header">
                <div class="textbox-title">
                    生产厂家列表
                </div>
            </div>
        </div>
        <div>
            <div class="eXtremeTable">
                <table id="ec_table" class="tableRegion" width="98%">
                    <thead>
                    <tr>
                        <td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"
                                                       title="selid"></td>
                        <td class="tableHeader">序号</td>
                        <td class="tableHeader">厂家全称</td>
                        <td class="tableHeader">缩写</td>
                        <td class="tableHeader">联系人</td>
                        <td class="tableHeader">电话</td>
                        <td class="tableHeader">手机</td>
                        <td class="tableHeader">传真</td>
                        <td class="tableHeader">验货员</td>
                        <td class="tableHeader">状态</td>
                    </tr>
                    </thead>
                    <tbody class="tableBody">
                    <c:forEach items="${list}" var="o" varStatus="status">
                        <tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'">
                            <td><input type="checkbox" name="id" value="${o.factoryId}" title="id"/></td>
                            <td>${status.index+1}</td>
                            <td><a href="${pageContext.request.contextPath}/factory/detail?id=${o.factoryId}">${o.fullName}</a></td>
                            <td>${o.factoryName}</td>
                            <td>${o.contacts}</td>
                            <td>${o.phone}</td>
                            <td>${o.mobile}</td>
                            <td>${o.fax}</td>
                            <td>${o.inspector}</td>
                            <td>
                                <c:if test="${o.state==1}">启用</c:if>
                                <c:if test="${o.state==0}">停用</c:if>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>